package com.xin.springcloudquartz.service;

import com.xin.springcloudquartz.dataobject.Event;
import com.xin.springcloudquartz.dto.PageResult;
import org.springframework.data.domain.Pageable;

public interface EventService {
    //添加事件
    Event create(Event event);
    //修改事件
    Event update(Event event);
    //删除事件
    boolean delete(String id);
    //查询某个事件
    Event findOne(String id);
    //查询某人的全部事件
    PageResult findAll(String openId, Pageable pageable);
    //推送微信模板消息
    boolean pushQuartz(String openId,String date,String message);
}
